package net.andrea.girardello;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import net.andrea.girardello.view.ConfirmView;

/**
 * @author agirardello
 */
public class Midlet extends MIDlet {
    
    private Display display = null;
    
    public void startApp() {
        this.display = Display.getDisplay(this);
        
        ConfirmView mcw = new ConfirmView("MensaCam", this);
        showDisplay(mcw);
    }

    public Display getDisplay(){
        return display;
    }
    
    public void showDisplay(Displayable display){
        this.getDisplay().setCurrent(display);
    }
    
    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
        this.display.setCurrent(null);
        notifyDestroyed();
    }

}
